<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php 
if(is_object($ad))
{
?>
<article class="prospect" itemscope itemtype="http://schema.org/Product">
<!--[if lt IE 9]><div class="prospect"><![endif]-->
	<div class="prospect-padding">
		<div class="prospect-image span5 col-md-5"><?php require($adc->getViewPath().'elements/Image.php'); ?></div>
		<div class="info span7 col-md-7">
			<?php require($adc->getViewPath().'elements/Title.php'); ?>
			<div class="float-left row2 col1">
				<?php if($ad->getWeight() > 0):  ?>
				<?php 
				if($ad->getIsByying() == 0)
				{ echo ucfirst($txt->getWord('max').' '.$txt->getWord('payload')); }
				else
				{ echo ucfirst($txt->getWord('payload')); }
				?><br />
				<span class="value"><?php echo $ad->getWeight(); ?> kg</span>
				<?php endif; ?>
			</div>
			<div class="float-left h-space" style="width:10px;">&nbsp;</div>
			<div class="float-left row2 col2">
				<?php if($ad->getLengthUsed() > 0):  ?>
				<?php 
				if($ad->getIsByying() == 0)
				{ echo ucfirst($txt->getWord('max').' '.$txt->getWord('distance')); }
				else
				{ echo ucfirst($txt->getWord('distance')); }
				?><br />
				<span class="value"><?php echo $ad->getLengthUsed(); ?> km</span>
				<?php endif; ?>
			</div>
			<?php if($adc->getViewObject() != 'AdLatest'): ?>
				<div class="float-right row2 col3"><?php require($adc->getViewPath().'elements/Price.php'); ?></div>
			<?php endif; ?>
			<div class="clear"></div><br />
			<div class="cat-info"><?php require($adc->getViewPath().'elements/CatInfo.php'); ?></div>
			<div class="float-right col3"><?php require($adc->getViewPath().'elements/CargoInfo.php'); ?></div>
			<div class="clear"></div><br />
			<?php require($adc->getViewPath().'elements/Description.php'); ?>
			<?php 
			if($com->getComId() == 11)
			{ require($adc->getViewPath().'elements/Edit.php'); }
			?>
		</div><div class="clear"></div>
	</div>
<!--[if lt IE 9]></div><![endif]-->
</article>
<?php
}
?>